<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <h:panelGroup rendered="#{evaluacionController.getEvaluacionesByEmpleadoId(empleadoController.selected.id).size() > 0}">
        <h4> Evaluaciones </h4>
        <h:dataTable value="#{evaluacionController.getEvaluacionesByEmpleadoId(empleadoController.selected.id)}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{bundle.ListEvaluacionTitle_puntuacion}"/>
                </f:facet>
                <h:outputText value="#{item.puntuacion}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{bundle.ListEvaluacionTitle_comentarios}"/>
                </f:facet>
                <h:outputText value="#{item.comentarios}"/>
            </h:column>
            <c:if test="${IsEdit == true}">
                <h:column>
                    <f:facet name="header">
                        Eliminar
                    </f:facet>
                     <h:commandLink action="#{evaluacionController.destroy(item.id)}" >
                        <i class="icon-remove"></i>
                    </h:commandLink>
                </h:column>
            </c:if>
        </h:dataTable>
    </h:panelGroup>
</ui:composition>
